home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
soundu
/
sbplay07.zip
/
SBPLAY.DOC
< prev
next >
Wrap
Text File
|
1994-05-14
|
5KB
|
103 lines
SBPLAY version 1.07 May 14, 1994 by John A. Ball
SBPlay is a utility for playing back sound files on Sound Blaster
compatiable cards, and the regular PC speaker. It does not require a
sound board. To use the program type
SBPLAY filename
where filename is the path to the file if required and filename can
include wild card characters. Filename extensions are not required.
Version 1.07 will play back Tandy Sound files (SND), Creative Labs
(VOC) files, Microsoft (WAV) files and Amiga (IFF) & (RAW) files.
There is also some support for MAC files and .AU files.
SBPlay will also play the samples in (MOD) files at the last used
frequency. Try using the /X command line option to see the song
patterns. It will try to play back unknown files or raw data files
such as MAC SND files at 11,000 samples per second. The sound files
should be uncompressed, 8 bits, and unsigned. Note other types of
files can be played by using the command line options to change the
defaults. I.e. R:22000 to change the playback speed to 22,000 samples per
second.
SBPlay will also rip sound samples from MOD files and will create
the SAM sample files which were used to create the original mod file.
SAM files are used by MOD editors to create MOD files and usually
contain musical instrument sounds or other sound effects.
SBPlay can be used to play a randomly selected sound file from a
directory with the /RAN switch. This can be used to play a different
sound file each time the computer boots by placing the following
command in the autoexec.bat file:
SBPLAY c:\sound\*.* /s/ran
where c:\sound is a directory containing sound files. The /s prevents
any file information from being shown on the screen and the /ran
selects any one of the files that are available.
SBPlay is compatiable with DESQview and Windows. It can be used to
play back sound files by associating the sound file extension with
SBPlay in windows and DOSShell.
The main program is written in C and the sound routine for the PC
speaker and Sound Blaster card is written in assembler. I used
QuickC 2.51 with Assembler to create this program.
There are limitations to this program.
1) SBPLAY does not play back ALL sound files which have been
compressed. It does play back version 1.0 compressed VOC files.
2) The program will not play back files that are larger than the DOS
ram memory available.
Problems:
SBPlay uses the DOS environment to help find the hardware
configuration. It looks for the BLASTER variable to determine what
the hardware address is, the IRQ, the DMA channel, and the board type.
i.e.
SET BLASTER=A220 I5 D1 T3
will tell SBPlay that the Address is 220h, the IRQ is 5, the DMA
channel is 1, and the card type is 3 (SB ver 2.0). If your board
is configured for another DMA channel such as 0, the D parameter
must be D0 . If you have a Sound Blaster compatiable card and SBPlay
locks up try using T-1 to tell SBPlay that your card is not a Sound
Blaster card. If the hardware address or IRQ is not correct in the
BLASTER variable SBPlay should give you an error message and you can
use the /x parameter on the command line to find the correct hardware
information.
What's New?
version 1.07 - Improvements made so that SB Pros and GUS will work
with SBPlay?????
The use of this program is free but you must register your use of
this program. By registering I receive the feedback required to
keep me supporting this program and improving it.
The source code for this program is available. If you wish a copy
of the C and assembler source code please send a donation of $10 to
pay for the disk, shipping and handling, etc. Also, what size disk
you wish (3 1/2 or 5 1/4) and I will send you a copy of the source
code for the lastest version of SBPlay.
Comments and suggestions may be sent to
john.ball@two-t.com or john.ball@datex.com
John A. Ball
2398 Victoria Street or Fidonet 1:359/298
Prince George, B.C.
V2L 2M2 Nanet 60-45-05
Canada
Thank-you for trying my program.